Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


PreviousPrevious NextNext

~Kelly Cisboosikonyjip 15.Nov.09 11:10 AM a Web browser
Applications Development All Releases All Platforms

Hi, please can anyone see why SAXFatalError is not called when running this code? The Print statement in SAXFatalError is not fired. Instead I get error 4603 SAX parser operation failed. Thanks!

Sub Initialize
Dim session As New NotesSession
Dim stream As NotesStream
Dim parser As NotesSAXParser
Set stream=session.CreateStream
Call stream.WriteText("<docs><doc><title>not well-f&rmed</title></doc></docs>")
Set parser=session.CreateSAXParser(stream)
On Event SAX_Characters From parser Call SAXCharacters
On Event SAX_FatalError From parser Call SAXFatalError
Call parser.Process
End Sub

Sub SAXFatalError(Source As NotesSAXParser, Exception As NotesSAXException)
Print "FatalError: "+Exception.Message
End Sub

Sub SAXCharacters(Source As NotesSAXParser, Byval Characters As String, Byval Length As Long)
Print Characters
End Sub

  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Advanced search

 RSS feedsRSS
All forum posts RSS
All main topics RSS